﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 工厂方法模式.FactoryMethod;
using 简单工厂.War3.Service;

namespace 工厂方法模式
{
    class Program
    {
        static void Main(string[] args)
        {
            {

                Human human = new Human();
                NE ne = new NE();
                ORC orc = new ORC();
                Undead undead = new Undead();
            }
            {
                IFactory humanFactory = new HumanFactory();
                humanFactory.CreateInstance().ShowKing();


                IFactory sixFactory = new SixFactory();
                sixFactory.CreateInstance().ShowKing();
            }
            Console.Read();
        }
    }
}
